﻿
using System;
using System.Collections.Generic;

namespace TimeRelated
{
	/// <summary>
	/// Simpler Time class to provide simpler times
	/// </summary>
	public class SimplerTime
	{
		public static string DaysFromNow(DateTime pivot, DateTime other) {
			TimeSpan span = pivot - other;
			switch (span.Days) {
				case -7:
					return "Next week";
				case 0:
					return "Today";
				case 1:
					return "Yesterday";
				default:
					return span.Days + " days ago";
			}
		}
	}
}